package com.qf.ssm.ex;

import com.qf.ssm.result.ResultStatus;
import lombok.Getter;

/**
 * 1. 方便我们后台解决问题
 * 2.  事务的默认处理就是Run
 *
 * @author zhangwei
 */

@Getter
public class UserException extends RuntimeException {
    private ResultStatus resultStatus;

    public UserException(ResultStatus resultStatus) {
        super(resultStatus.getMsg());
        this.resultStatus = resultStatus;
    }
}
